package com.fitso.model.bean.measure.time;

import java.math.BigDecimal;

public class Minute extends Time {
	private static final long serialVersionUID = 1L;
	
	private static final BigDecimal FROM_BASE = BigDecimal.valueOf(0.0166666667);
	private static final BigDecimal TO_BASE = BigDecimal.valueOf(60);

	public Minute() {
		super();
	}
	
	public Minute(Integer value){
		super(value);
	}
	
	public Minute(Double value){
		super(value);
	}


	public Minute(BigDecimal value) {
		super(value);
	}

	public Minute(Time time) {
		super(time);
	}

	protected BigDecimal getToBaseUnitFactor() {
		return TO_BASE;
	}

	protected BigDecimal getFromBaseUnitFactor() {
		return FROM_BASE;
	}

	public String getUnitMark() {
		return "minutes";
	}
}
